Skip to content

Feat/pull to refresh connections - #79

Merged
snhsish merged 6 commits into
mainfrom
feat/pull-to-refresh-connections
Aug 31, 2026
Merged

Feat/pull to refresh connections#79
snhsish merged 6 commits into
mainfrom
feat/pull-to-refresh-connections

Conversation

@snhsish

@snhsish snhsish commented Aug 31, 2026

Copy link
Copy Markdown
Owner

No description provided.

snhsish and others added 6 commits August 29, 2026 11:47
Surface permission requests (e.g. external directory access) that are not
tied to a message tool part as a dedicated panel above the chat input, so
users can accept/deny and unblock the stuck agent response. Also includes
project directory display tweaks in the stats card.

Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
The mobile expected a permission shape (id/permission/patterns/tool) that
does not match OpenCode's actual Permission.Request (requestID/action/
resources/source). This caused the SSE handler to drop requests (sessionID
early-return) and the poller to filter out valid entries, so no in-chat
prompt ever rendered and the agent hung.

- Normalize incoming permissions (id/requestID, permission/action,
  patterns/resources, always/save, tool/source) in lib/permissions.
- Relax sessionID gating in both the SSE handler and the poller so requests
  without a sessionID are still attributed to the active session.
- Render unmatched (e.g. external directory access) permissions in a panel
  above the input, and make replyToPermission try both reply endpoint shapes.

Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
Temporary console logging in the SSE permission handler, the poller, and the
session render to capture the real OpenCode permission shape and confirm the
panel receives pending permissions.

Co-authored-by: muse-spark-1.2 <muse-spark@users.noreply.github.com>
- Bypass 30s rate limit on manual refresh for immediate feedback
- Re-check all connection health statuses in parallel
- Re-fetch active connection project info on refresh
…connections

# Conflicts:
#	apps/mobile/app/project/[projectId]/[sessionId]/index.tsx
@snhsish
snhsish merged commit 110bcdf into main Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant